package com.example.terminalservice.common;

import lombok.Getter;

/**
 * @author 28142
 * @description 响应状态码枚举类
 * @date 2023/8/4 16:48
 */
@Getter
public enum CodeEnum {
    CODE_200(200, "success"),
    CODE_400(400, "error"),
    CODE_401(401, "参数错误"),
    CODE_402(402, "权限不足"),
    CODE_403(403, "验证码错误"),
    CODE_404(404, "token错误"),
    CODE_500(500, "系统错误"),
    CODE_501(501, "数据源异常"),
    CODE_502(502, "sql错误"),
    CODE_503(503, "文件传输错误"),
    CODE_600(600, "业务异常");

    private Integer code;
    private String msg;

    CodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
